package com.redoor.app.stake.auth.commons;

import com.redoornetwork.framework.core.response.Status;

/**
 * 业务自定义错误状态，系统状态以1开头，自定义状态非1开头
 * Created by Floki on 2018/1/19.
 */
public enum StakeApplicationStatus implements Status {
    LOGIN_AUTH_FAILED("20001","用户中心无用户返回"),
    LOGIN_AUTH_NOROLE("20002","用户无权限访问"),
    REDIS_NO_AUTH("20101", "Redis认证错误"),
    OTHER_EXCEPTION("99999","未知异常"),
    SUCCESS("1000","运行成功"),
    ;

    private String code;
    private String message;

    StakeApplicationStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
